/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package seeqpod;

public class SeeqPod {
	String KEY = "c9b619b61b27e61a12e6a584adc09dd689e4805c";
	public static void main(String[] args){
		SeeqPod sp = new SeeqPod();
		
		sp.search("311");
		sp.recommend("sublime", "smoke two joints");
		sp.spellcheck("50 cents");
	}
	
	public SeeqPodTrack[] search(String query){
		InOut io = new InOut();
    	query = query.replaceAll(" ", "%20");
    	return io.SearchSeeqResults(query, KEY, 0, 10);
    }
	public SeeqPodTrack[] search(String query, int startIndex){
		InOut io = new InOut();
    	query = query.replaceAll(" ", "%20");
    	return io.SearchSeeqResults(query, KEY, startIndex, 10);
    }
	public SeeqPodTrack[] search(String query, int startIndex, int numResults){
		InOut io = new InOut();
    	query = query.replaceAll(" ", "%20");
    	return io.SearchSeeqResults(query, KEY, startIndex, numResults);
    }

	public SeeqPodRecommendation[] recommend(String artist, String song){
		InOut io = new InOut();
		artist = artist.replaceAll(" ", "%20");
		song = song.replaceAll(" ", "%20");
		return io.DiscoverSeeqResults(artist, song, KEY);
	}

	public SeeqPodSpellCheck[] spellcheck(String query){
		InOut io = new InOut();
		query = query.replaceAll(" ", "%20");
		return io.SeeqPodSpell(query, KEY);
	}

}
